import request from '@/utils/request'

// 查询节日管理列表
export function listHolidayManage(query) {
  return request({
    url: '/hr/holidayManage/list',
    method: 'get',
    params: query
  })
}

// 查询节日管理详细
export function getHolidayManage(id) {
  return request({
    url: '/hr/holidayManage/' + id,
    method: 'get'
  })
}

// 新增节日管理
export function addHolidayManage(data) {
  return request({
    url: '/hr/holidayManage',
    method: 'post',
    data: data
  })
}

// 修改节日管理
export function updateHolidayManage(data) {
  return request({
    url: '/hr/holidayManage',
    method: 'put',
    data: data
  })
}

// 删除节日管理
export function delHolidayManage(id) {
  return request({
    url: '/hr/holidayManage/' + id,
    method: 'delete'
  })
}
